package com.hoas.quicklysdk.aliyun.oss.configure;

import com.hoas.quicklysdk.aliyun.oss.AliyunOssClient;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AliyunOssAutoConfigure {

    @Bean
    @ConditionalOnBean(AliyunOssProperties.class)
    public AliyunOssClient ossClient(AliyunOssProperties properties) {
        AliyunOssClient ossClient = new AliyunOssClient(properties);
        return ossClient;
    }

}
